import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:wanAndroid/common/uts/ui_uts.dart';
import 'package:wanAndroid/page/page_webview.dart';
import 'package:wanAndroid/res/colors.dart';

class PageAboutMe extends StatefulWidget {
  static Future<void> start(BuildContext context) async {
    return await Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) {
          return PageAboutMe();
        },
      ),
    );
  }

  @override
  State<StatefulWidget> createState() => _PageAboutMe();
}

class _PageAboutMe extends State<PageAboutMe> {
  @override
  Widget build(BuildContext context) => Scaffold(
        backgroundColor: ResColors.scaffoldColor,
        appBar: AppBar(
          title: UiUts.getTitle(
            "开发者",
            color: Colors.white,
          ),
        ),
        body: Container(
          width: double.infinity,
          margin: const EdgeInsets.only(
            top: 10,
          ),
          padding: const EdgeInsets.only(
            left: 15,
            right: 10,
          ),
          child: ListView(
            children: [
              Container(
                child: InkWell(
                  child: Text(
                    "作者码佬:https://gitee.com/code-guy",
                    softWrap: true,
                    style: TextStyle(
                      color: ResColors.primaryColor,
                      decoration: TextDecoration.underline,
                      fontSize: 20,
                    ),
                  ),
                  onTap: () {
                    PageWebView.start(
                      context,
                      "https://gitee.com/code-guy",
                      title: "码佬",
                    );
                  },
                ),
              ),
              UiUts.getDivider(
                height: 10,
              ),
              Container(
                child: InkWell(
                  child: Text(
                    "项目地址:https://gitee.com/code-guy/fapp_for_wan-android",
                    softWrap: true,
                    style: TextStyle(
                      color: ResColors.primaryColor,
                      decoration: TextDecoration.underline,
                      fontSize: 20,
                    ),
                  ),
                  onTap: () {
                    PageWebView.start(
                      context,
                      "https://gitee.com/code-guy/fapp_for_wan-android",
                      title: "项目地址",
                    );
                  },
                ),
              ),
            ],
          ),
        ),
      );
}
